import request from '@/utils/request'

export function top5 () {
  return request({
    url: '/dashboard/top5',
    method: 'get'
  })
}

export function realtime () {
  return request({
    url: '/dashboard/realtime',
    method: 'get'
  })
}

export function history (data) {
  return request({
    url: '/dashboard/history',
    method: 'post',
    data
  })
}

export function totle (data) {
  return request({
    url: '/dashboard/totle',
    method: 'post',
    data
  })
}

export function general () {
  return request({
    url: '/dashboard/general',
    method: 'get'
  })
}
